﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Experiment.aspx.cs" Inherits="Admin_Experiment" Title="Admin ~ Experiment" %>
<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                               
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading" style="width: 942px">Experiment</td>
                                                                            <td><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server"></asp:Label></td>
                                                                            <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label></td>
                                                                        </tr>
                                            
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                        <tr id="trExperimenttxtBoxes" runat="server" >
                                            <td align="left" colspan="3" >
                                                <table>
                                                             <tr class="ashBkg" id="ExpId" runat="server" visible="false"  >
                                                                <td class='label' style="width: 120px">ID</td>                     
                                                                <td> <asp:TextBox ID="txtExpId" runat="server" cssclass='textBox' Width='50px' 
                                                            MaxLength="300" Height="20px"></asp:TextBox> </td>
                                                            </tr>
                                            
                                                            <tr class="altanateAshBkg">
                                                                <td class="label">Experiment Name</td>
                                                                <td ><asp:TextBox ID="txtExperimentName" CssClass="textBox" runat="server" 
                                                                        Width="246px" ></asp:TextBox></td>
                                                            </tr>
                                                    
                                                            <tr class="ashBkg" id="tr1" runat="server" >
                                                                <td class='label' style="width: 120px">Summary</td>                     
                                                                <td> <asp:TextBox ID="txtSummary" runat="server" cssclass='textBox' Width='775px' MaxLength="300" Height="164px" TextMode="MultiLine"></asp:TextBox> </td>
                                                            </tr>
                                                        
                                                            <tr class="altanateAshBkg">
                                                             <td style="height: 10px" colspan="2"> 
                                                                 <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/btnSave.jpg" 
                                                                     onclick="btnSave_Click1" />
                                                            </td>
                                                           </tr>
                                                
                                                </table>
                                            
                                            </td>                        
                                        </tr>
                                             
                                        <tr id="trdgExperiment" runat="server" align="left" >                                                    
                                        
                                                    <td colspan="3">
                                                                <asp:GridView   AllowSorting="true" AutoGenerateEditButton="true"  
                                                                    AllowPaging="true" AutoGenerateColumns="false" ID="dgExperiment" 
                                                                    runat="server" onrowediting="dgExperiment_RowEditing" 
                                                                    onrowdeleting="dgExperiment_RowDeleting" 
                                                            onselectedindexchanged="dgExperiment_SelectedIndexChanged" 
                                                                    onpageindexchanging="dgExperiment_PageIndexChanging1" Width="890px" >
                                                                    <Columns>      
                                                                   <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                                        <asp:BoundField  DataField="experiment_id" HeaderText="Id"/>
                                                                        <asp:BoundField DataField="ExperimentName" HeaderText="Experiment Name" />
                                                                        <asp:BoundField  DataField="exp_summary" HeaderText="Summary"/>
                                                                                                                     
                                                                    </Columns>
                                                                    <HeaderStyle CssClass="gridHeading" />
                                                                    <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                                                    <RowStyle CssClass="gridRowStyle" />                                                                                       
                                                                    <PagerStyle />
                                                                    <EditRowStyle CssClass="gridEditRow" />                                     
                                                                </asp:GridView>
                                                    </td>
                                        </tr>  
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 
</asp:Content>

